﻿using System.Collections;
using System.Collections.Generic;

namespace CrmClient.Mapping
{
    public abstract class CrmOptionsSetBase : IEnumerable<CrmOption>
    {
        private List<CrmOption> _list = new List<CrmOption>();

        internal void Add(CrmOption option)
        {
            _list.Add(option);
        }

        public IEnumerator<CrmOption> GetEnumerator()
        {
            return _list.GetEnumerator();
        }

        IEnumerator IEnumerable.GetEnumerator()
        {
            return this.GetEnumerator();
        }
    }
}
